package com.d0324;
import java.util.Comparator;
public class StudentAgeComparator implements Comparator<Studennt>{

    @Override

    public int compare(Studennt o1,Studennt o2) {

        if (o1.getScore()>o2.getScore()){
            return 1;
        }else if (o1.getScore()<o2.getScore()){
            return -1;
        }else {
            return 0;
        }
    }
}
